<html>
	<head>
	</head>
	<body>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
		<table id="Exportar_a_Excel">
		<tr>
			<td>Celda1</td>
			<td>Celda2</td>
			<td>Celda3</td>
			<td>Celda4</td>
			<td>Celda5</td>
		</tr>
		<tr>
			<td>Celda6</td>
			<td>Celda7</td>
			<td>Celda8</td>
			<td>Celda9</td>
			<td>Celda10</td>
		</tr>
		</table>

<form action="" method="post" target="_blank" id="FormularioExportacion">
<p>Exportar a Excel  <img src="export_to_excel.gif" class="botonExcel" /></p>
<input type="hidden" id="datos_a_enviar" name="datos_a_enviar" />
</form>
	</body>
</html>


<?php
header("Content-type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: filename=ficheroExcel.xls");
header("Pragma: no-cache");
header("Expires: 0");
echo $_POST['datos_a_enviar'];
?>
